package item.inkcloud.userservice.service;


import item.inkcloud.userservice.entity.UserInfo;
import item.inkcloud.userservice.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UpdateUserInfoService {

    @Autowired
    UserMapper userMapper;


    public int update(UserInfo info){
        try {
            userMapper.updateUserInfo(info);

            return 1;
        }catch (Exception e){

            return 0;

        }



    }


}
